﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MySql.Data.MySqlClient;
using BartonExtension;

namespace SQLWrapper
{
    public static class MySQLConnectionManager
    {

        public static MySqlConnection getConnByDefaultConnectionString()
        {
            return getConnByConnectionString(ConfigurationExtensions.ValueOfConfig("connectionStr"));
        }

        public static MySqlConnection getConnByConnectionString(string connStr)
        {
            MySqlConnection conn = new MySqlConnection(connStr);
            conn.Open();
            return conn;
        }
    }
}
